.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .header {
    text-align: center;
    margin-top: 40px;
  }
  
  .title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
  }
  
  .subtitle {
    font-size: 16px;
    color: #666;
  }
  
  .characterContainer {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
  }
  
  .character {
    position: relative;
    width: 200px;
    height: 200px;
  }
  
  .characterImage {
    width: 100%;
    height: 100%;
    background-image: url('../img/cartoon_man.png'); /* 替换为实际图片路径 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 2;
  }
  
  .radialLight {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255,230,0,0.4) 0%, rgba(255,230,0,0) 70%);
    z-index: 1;
  }
  
  .controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
  }
  
  .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 40px;
  }
  
  .micContainer {
    position: relative;
  }
  
  .micCircle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FF5252;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.3);
  }
  
  .micIcon {
    width: 36px;
    height: 36px;
    background-color: white;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z'%3E%3C/path%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'%3E%3C/path%3E%3Cline x1='12' y1='19' x2='12' y2='23'%3E%3C/line%3E%3Cline x1='8' y1='23' x2='16' y2='23'%3E%3C/line%3E%3C/svg%3E");
    mask-size: contain;
  }
  
  .cancelButton, .confirmButton {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    color: #666;
    font-size: 24px;
  }
  
  .confirmButton {
    background-color: #4CAF50;
    color: white;
  }
  
  .icon {
    font-size: 24px;
  }
  
  .prompt {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
  }

 /* 错误提示样式 */
.errorContainer {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.errorBox {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease-out;
}

.errorIcon {
  color: #ff4d4f;
  font-size: 20px;
  margin-right: 12px;
  font-weight: bold;
}

.errorText {
  color: #ff4d4f;
  font-size: 14px;
}

/* 识别结果区域样式 */
.transcriptContainer {
  margin: 20px;
  padding: 15px;
  min-height: 100px;
  background-color: #f8f8f8;
  border-radius: 10px;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  overflow-y: auto;
  max-height: 200px;
}

.placeholder {
  color: #999;
  text-align: center;
  margin-top: 30px;
}

/* 录音状态下的麦克风样式 */
.micCircle.recording {
  animation: pulse 1.5s infinite;
  background-color: #ff4d4f;
}

/* 禁用状态的确认按钮 */
.confirmButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 77, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 音频预览样式 */
.audioPreview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.audioPlayer {
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
}